﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace WpfWebBrowser
{
    [System.Runtime.InteropServices.ComVisibleAttribute(true)]//将该类设置为com可访问 
    public class ObjectForScriptingHelper
    {
        MainWindow mainWindow;

        public ObjectForScriptingHelper(MainWindow main)
        {
            mainWindow = main;
        }

        //这个方法就是网页上要反问的方法
        public void HtmlCmd(string cmd)
        {

            MessageBox.Show(cmd);

        }
    }
}
